
// 一个状态模块就是一个 reducer
const proreducer =(state = {proList:[]},action)=>{
    const {type,payload} = action
    switch(type){
        case 'change_pro':
            return {...state, proList:payload}
        default:
            return state
    }
}
export default proreducer